package com.learning.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.*;

/**
 * <p>
 * 教师权限表
 * </p>
 *
 * @author itRao
 * @since 2024-05-23
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("permission")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对应教师id
     */
    private Long teacherId;

    /**
     * 增加题目权限，默认为false
     */
    private Boolean insertAuth;

    /**
     * 修改题目权限，默认false
     */
    private Boolean updateAuth;

    /**
     * 删除题目权限，默认false
     */
    private Boolean deleteAuth;

    /**
     * 改题权限，默认false
     */
    private Boolean correctAuth;

    /**
     * 出题权限，默认false
     */
    private Boolean setAuth;

    /**
     * 发布考试权限，默认false
     */
    private Boolean examAuth;


}
